import queue
s1 = '我是一只猫！'
FIFO = queue.Queue()
i = len(s1) - 1
while i >= 0:
    FIFO.put(s1[i])
    i -= 1
while not FIFO.empty():
    print(FIFO.get())